#!/usr/bin/python

# The input() function has differences betwen Python 2 and Python 3.

# In Python 2 the input() function uses to input string from stdin and evaluate it.
# For simple input you should use the raw_input() function.
print("This example must be run in Python 2")
print("Input string 1 with python code:")
s1 = input()
print(s1)

s2 = raw_input("Input string 2:")
print(s2)

# In Python 3 the input() function uses to simple input string from stdin (like raw_input() in Python 2).
# If you need evaluate, you should use the eval() function: eval(input())
print("This example must be run in Python 3")
print(input("Simple string:"))
print(eval(input("Eval string:")))
